import React from "react"
import ViewItem from './ViewItem'
import './ViewList.scss'
function ViewList(props) {
    return (
        <div className="view-list">
            {props.data.map((item) => {
                // console.log('list',item);
                return (<ViewItem key={item.id} data={item}/>)
            })}
        </div>
    )
}
export default ViewList